package com.ly.nethub.config

import com.ly.nethub.bean.IPInfo

/**
 * 通讯协议
 */
sealed interface CommunicationProtocol {

    val data: List<Any>

    data class TCP(val ips: List<IPInfo>) : CommunicationProtocol {
        override val data: List<Any>
            get() = ips
    }

    //todo  未实现
    data class WebSocket(val hosts: List<String>) : CommunicationProtocol {
        override val data: List<Any>
            get() = hosts
    }
}